package com.pureut.storage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pureut.storage.domain.PickingOutsourceDetail;
import com.pureut.storage.domain.PickingSaleDetail;
import com.pureut.storage.dto.NewPickingSaleDetailDto;
import com.pureut.storage.dto.PickingOutsourceDetailDto;
import com.pureut.storage.dto.PickingSaleDetailDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PickingSaleDetailMapper extends BaseMapper<PickingSaleDetail> {

    /**
     * 销售发货明细查询列表
     */
    List<NewPickingSaleDetailDto> getPickDetailList(@Param("docNum")String docNum);

    /**
     * 销售发货。根据关联单号查出当前代交接的总重量
     * @param inputValue
     * @return
     */
    Double getDoc(@Param("inputValue") String inputValue);

    /**
     * 销售发货，根据批次号查询出当前待交接的总重量
     * @param inputValue
     * @return
     */
    Double getPiHao(@Param("inputValue") String inputValue);
}
